
import {NestMiddleware,Injectable} from "@nestjs/common"
import {Request,Response,NextFunction} from 'express'

@Injectable()
export class Logger implements NestMiddleware {
    use(req:Request,res:Response,next:NextFunction){
        console.log('触发中间件了');
        res.send('拦截住了')
    }
}